package com.DesignMode.Singleton;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: zjz
 * @Date: 2021/10/09/17:09
 * @Description:
 * @Target:  静态内部类单例
 */
public  class InnerSingleton {
    private InnerSingleton(){}


    public static InnerSingleton getInstance(){
        return InnerClass.innerSingleton;
    }


    public static class InnerClass{
        private static final InnerSingleton innerSingleton = new InnerSingleton();
    }



}
